Repository navigation
Conversation
Contributor
Author
|
This one is ready for review when you get a moment. Fixes the flake signature hit twice on #1439's CI. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test_a_reason_written_on_stderr_while_the_link_was_down_reaches_the_run_watching_itfailed twice in a row on the
unit (py3.12 / ubuntu-latest / 4/4)shard of anunrelated PR (#1439), both times at
test_node_stderr_replay.py:364:The wait asks for
endpoint.detachedwithin_until's 10 s default, but theflag is set by
_heartbeat->_lost->_drop, which waits a heartbeat tickplus the link-loss window and then runs through the event loop. Under shard
load the signal lands past 10 s; the test then fails, and the agent the turn
was still waiting for trips the teardown guard. The check waits on an
observable condition (
detached is not None), not on how fast the heartbeatloop happens to turn, so the wait gets margin past the heartbeat, not a longer
poll:
timeout=30, the parameter_untilalready takes(
test_subagent_cli_remote.py:403usestimeout=5).Test-only change; no production code moves.
Type
Verification
uv run --frozen pytest tests/test_node_stderr_replay.py -q -n 0 -k "reason_written" --tb=short-> 1 passeduv run --frozen pytest tests/test_node_stderr_replay.py::test_a_reason_written_on_stderr_while_the_link_was_down_reaches_the_run_watching_it -q -n 0(x3) -> passed each timeRelevant tests pass locally
Relevant lint / type checks pass locally
User-facing docs or screenshots are updated when needed
Risk
Related Issues
N/A